<%@page contentType="text/html; charSet=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<title>用户名</title>
    <script language="javascript" type="">
        function RegisterSubmit()
        {//对用户名和密码文本框不为空进行校验函数
            with (document.Register) {
                var user=loginName.value;
                var pass=password.value;
                if(user==null||user=="")
                {
                    alert("请填写用户名");
                }
                else if(pass==null||pass=="")
                {
                    alert("请填写密码");
                }
                else submit();
            }
        }
    </script>
</head>
<body>
<form action="checkUser.jsp" methon="post" name="Register">
    <p align="left">
        用户名：<input type="text" size="20" name="loginName"><br>
        密&nbsp;&nbsp;码:<input type="text" size="20"name="password"><br>
        <input type="button" value="提交" name="B1" onclick="RegisterSubmit()">
        <input type="reset" value="重置" name="B2">
    </p>
</form>
</body>
</html>